package com.lyy.service;

import com.github.pagehelper.PageInfo;
import com.lyy.entity.Video;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Liangyaoyun
 */
public interface VideoService {
    /**
     * 按视频表主键查询一条视频记录，分步联查该视频下的全部章记录，以及每一章下的全部集记录
     *
     * @param videoId 视频主键
     * @return 成功时返回视频记录，失败时抛异常
     */
    Video selectByVideoId(Integer videoId);

    PageInfo<Video> searchByVideoTitle(String videoTitle, Integer pageNum, Integer pageSize);
}
